.carousel {
    overflow: hidden;
    width: 500px;
    height: 280px;
    background-color: #f8f8f8;
    white-space: nowrap;
}

.carousel>div {
    display: inline-block;
    height: 100%;
    width: 100%;
    background-size: cover;
    transition: ease 0.5s;
}